﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace School
{
    public class Course
    {
        private HashSet<Student> students;
        private string name;

        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        public Course(string name)
        {
            this.name = name;
            this.students = new HashSet<Student>();
        }

        public HashSet<Student> Students
        {
            get
            {
                return students;
            }
            set
            {
                students = value;
            }
        }
        public void AddStudent(Student s)
        {
            this.students.Add(s);
        }

        public void RemoveStudent(Student s)
        {
            this.students.Remove(s);
        }

    }
}
